const model = {
  key: "alipay",
  name: "支付宝",
  group: ["pay", "alibaba"],

  libs: [
    {
      key: "alipaySdk",
      name: "alipaySdk",
      href: "https://github.com/alipay/alipay-sdk-nodejs-all",
    },
  ],
  config: {
    appid: {
      key: "appid",
      value: "",
      description: "appid",
      remark: "",
      required: true,
    },
    privateKey: {
      key: "privateKey",
      value: "",
      description: "支付宝api私钥",
      remark: "",
      required: true,
    },
    alipayPublicKey: {
      key: "alipayPublicKey",
      value: "",
      description: "支付宝公钥",
      remark: "",
      required: true,
    },
  },
  template: [
    {
      key: "base",
      name: "基础",
      input: {},
      output: {},
      url: "/api/libs/alipay/base.js",
    },
  ],
};

module.exports = model;
